<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> 
 <%
  
  String fileName = (String)request.getAttribute("fileName");
  String fileType = (String)request.getAttribute("fileType");
   String fileSaveName = (String)request.getAttribute("fileSaveName");
 %>
 
 <script language="javascript">
    
    window.opener.document.forms[0].templateFile.value ='<%=fileName%>'; 
    window.opener.document.forms[0].fileType.value ='<%=fileType%>';
     window.opener.document.forms[0].fileSaveName.value ='<%=fileSaveName%>';
    window.close();
       
</script>

 